package com.springboot.model;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DoctorAppointSetKey {
    private Integer doctorId;

    private Date bookDate;
    private String doctorName;

    public DoctorAppointSetKey() {
    }

    public DoctorAppointSetKey(Integer doctorId, Date bookDate) {
        this.doctorId = doctorId;
        this.bookDate = bookDate;
    }

    public Integer getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Integer doctorId) {
        this.doctorId = doctorId;
    }

    public String getBookDate() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        String date = sdf.format(bookDate);
        return date;
    }

    public void setBookDate(Date bookDate) {
        this.bookDate = bookDate;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    public String toTestString() {
        return "DoctorAppointSetKey{" +
                "doctorId=" + doctorId +
                ", bookDate=" + bookDate +
                '}';
    }
}